package com.jiang.daily.Q3516;

/**
 * @author Jiang
 * @version 1.0
 * @date 2025/09/04 10:25
 */
class Solution {
    public int findClosest(int x, int y, int z) {
        int res = Math.abs(x - z) - Math.abs(y - z);
        return res == 0 ? 0 : res < 0 ? 1 : 2;
    }
}